import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

const resolve = (p="./src") => {
  return path.resolve(__dirname, p);
};

// https://vite.dev/config/
export default defineConfig((config) => {
  
  return {
    plugins: [vue()],
    resolve: {
      alias: {
        '@': resolve(),
      }
    },
    css: {
      preprocessorOptions: {
        scss: {
            javascriptEnabled: true,
            additionalData: `@use "@/assets/css/variables.scss" as *;`
            }
      }
    }
  }
})
